package com.atguigu.yygh.cmn.service;

import com.atguigu.yygh.model.cmn.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @ClassName DictService
 * @Description 此类描述:
 * @Author dangchen
 * @DateTime 2022-10-09 19:26
 * @Version 1.0
 */
public interface DictService extends IService<Dict> {
    //根据数据id查询子数据列表
    List<Dict> findChildData(Long id);

    //导出
    void exportData(HttpServletResponse response);

    //导入数据字典
    void importDictData(MultipartFile file);

    //根据上级编码与值获取数据字典名称
    String getNameByParentDictCodeAndValue(String parentDictcode,String value);

    List<Dict> findByDictCode(String dictCode);
}
